#!/usr/bin/env python

import os
import sys

def init():
    _local_folder = os.path.dirname(os.path.realpath(__file__))
    sys.path.insert(0, os.path.dirname(_local_folder))
    safecenter_module = __import__(os.path.basename(_local_folder), {}, {}, [''])
    sys.modules["former_project"] = safecenter_module
    del sys.path[0]
    
    # set python lib path
    PYTHON_LIB = os.path.join(_local_folder, 'common_logic', 
                              'pythonlib')
    sys.path.insert(0, PYTHON_LIB)
    
if __name__ == "__main__":
    init()
    import django
    print django
